package oop1;

import java.util.Scanner;

public class ScenicSpot {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		// Tourist t = new Tourist();
		while (true) {
			Tourist t = new Tourist();
			System.out.println("请输入游客的姓名和年龄：");
			String name = in.next();
			if (name.equals("n"))
				break;
			t.name = name;
			t.age = in.nextInt();
			t.pay();

		}

	}

}
